Skip to content

LPS-125854 Fix XSS validating context and encoding HTML - #98059

Closed
wincent wants to merge 5 commits into
brianchandotcom:masterfrom
wincent:pull/699
Closed

LPS-125854 Fix XSS validating context and encoding HTML#98059
wincent wants to merge 5 commits into
brianchandotcom:masterfrom
wincent:pull/699

Conversation

@wincent

@wincent wincent commented Jan 25, 2021

Copy link
Copy Markdown

Based on liferay-frontend#699

This is a POC for what a download-and-patch workflow might look like for jquery.form — it's pretty hideous though (ie. committing a patch file), and I would need to tweak it to actually make it work robustly. In my testing I had a lot of trouble fighting with the Gradle cache; at one point it decided that the file should be empty and then started recreating the empty file instead of downloading it 🤦‍♂️. I also found that onlyIf blocks don't seem to work reliably with Copy tasks; Gradle seems to want to run them no matter what, irrespective of whether the block returns false.

Norbert Nemeth and others added 5 commits January 25, 2021 19:47
As requested here:

    #97915 (comment)

Note that in the related PR we discussed whether to apply a different
fix on master (ie. removing the vulnerable file, vs patching it on older
branches), but in the end it is less work overall just to patch
everywhere.
@liferay-continuous-integration

Copy link
Copy Markdown
Collaborator

Closing pull request because all liferay-portal pullrequests sent to Brian Chan must be sent by using ci:forward on a pull request that was sent to someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants